package com.huzz.controller;

import com.huzz.domain.LoginModel;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 描述
 *
 * @author Huzz
 * @create 2022-08-18 15:20
 */
@RestController
public class AuthController {

    @Resource
    private AuthenticationManager authenticationManager;

    @PostMapping("/register")
    public String loginx(@RequestBody LoginModel model) {
        // 注册
        return "TEST";
    }
}
